package com.example.controller.sys;

import com.example.service.IImgService;
import com.example.vo.ResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 图片表 前端控制器
 * </p>
 *
 * @author wsl
 * @since 2022-04-23
 */
@RestController
@RequestMapping("/img")
@Api(tags = "图片管理",value = "")
public class ImgController {

    @Autowired
    private IImgService imgService;

    @GetMapping("/menu-icons")
    @ApiOperation(value = "获取菜单图标选项")
    public ResultVo getMenuIconOptions(String keyword) {
        return imgService.getMenuIconOptions(keyword);
    }
}
